#include "mainwindow.h"
#include <QApplication>

order_for_goods *o_first;
goods_info *g_first;
logistic_info *l_first;
std::string account_true;
std::string key_true;
int users;     //users==0时为客户，users==1时为管理员登陆
int main(int argc, char *argv[])
{
    o_first = new order_for_goods("printer", "949.1", "1112413987322277565", "No.1037 Luoyu Road, Hongshan District, Wuhan City, Hubei Province");
    g_first = new goods_info("calculator", "00001", 98, 106, 114.9, 0.9, 103.41);
    l_first = new logistic_info("00001", "43000689586", "SF Holding", "Changsha Sorting Center of Hunan Province", "No!");
    l_first->next = new logistic_info("00002", "53000689759", "YTO EXPRESS", "Nanchang Plaza Company, Jiangxi Province", "No!");
    l_first->next->next = new logistic_info("00003", "23000689235", "ZTO EXPRESS", "Huazhong HNA Group Warehouse Company", "No!");
    account_true = "confidentoh";
    key_true = "zyqtcl555";
    users = 0;
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}
